import instance from '@/utils/request'

// 登录
export const reqLogin = (data) => {
  return instance({
    url: '/api/login',
    method: 'post',
    data,
  })
}

// 获取用户信息
export const reqUserInfo = (token) => {
  return instance({
    url: '/api/userinfo?token=' + token,
    method: 'get',
  })
}
